-- GENERATED SPELL FOR [Sasha] --


function spell0_26935(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(41580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26935', 5311, 1)
end

function spell1_26935(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(48815,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26935', 850, 1)
end

function spell2_26935(pUnit, Event) --@Truesilver Shot,n/a--
pUnit:FullCastSpellOnTarget(53093,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26935', 3000, 1)
end

function spell3_26935(pUnit, Event) --@Truesilver Shot,n/a--
pUnit:FullCastSpellOnTarget(53193,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26935', 3000, 1)
end

function Sorts_26935(pUnit, Event)
local choix_sorts_26935 = math.random(0, 3)
if choix_sorts_26935 == 0 then
pUnit:RegisterEvent('spell0_26935', 1, 1)
end
if choix_sorts_26935 == 1 then
pUnit:RegisterEvent('spell1_26935', 1, 1)
end
if choix_sorts_26935 == 2 then
pUnit:RegisterEvent('spell2_26935', 1, 1)
end
if choix_sorts_26935 == 3 then
pUnit:RegisterEvent('spell3_26935', 1, 1)
end
end

function mob26935_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26935', math.random(1500, 3000), 1)
end

function mob26935_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26935_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26935_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26935, 1, 'mob26935_Action')
RegisterUnitEvent(26935, 2, 'mob26935_Leave')
RegisterUnitEvent(26935, 3, 'mob26935_Kill')
RegisterUnitEvent(26935, 4, 'mob26935_Die')
